Filter hook '{$field}'

in WP Core File wp-includes/post.php at line 2992

Description

Filters the value of a specific post field for display. The dynamic portion of the hook name, `$field`, refers to the post field name.

Occurrences

Filename Line Number
wp-includes/post.php 2992
wp-includes/user.php 1856
wp-includes/bookmark.php 443

Parameters

Type Name Description
mixed $value Value of the prefixed post field.
int $post_id Post ID.
string $context Context for how to sanitize the field. Accepts 'raw', 'edit', 'db', 'display', 'attribute', or 'js'. Default 'display'.

PHP Doc

/**
			 * Filters the value of a specific post field for display.
			 *
			 * The dynamic portion of the hook name, `$field`, refers to the post
			 * field name.
			 *
			 * @since 2.3.0
			 *
			 * @param mixed  $value   Value of the prefixed post field.
			 * @param int    $post_id Post ID.
			 * @param string $context Context for how to sanitize the field.
			 *                        Accepts 'raw', 'edit', 'db', 'display',
			 *                        'attribute', or 'js'. Default 'display'.
			 */